package cn.play.cardgame;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

public class BootReceiver extends BroadcastReceiver {
	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) { // boot
//			Toast.makeText(context, "laile", 1).show();
			Intent intentMain = new Intent(context, StartActivity.class);
			// intentMain.setAction("android.intent.action.MAIN");
			// intentMain.addCategory("android.intent.category.LAUNCHER");
			intentMain.putExtra("animaTime",12000);
			intentMain.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
			context.startActivity(intentMain);
		}
	}
}